package com.example.mytestapplication.bean;



/**
 * 接口返回值对象
 *
 * @author Huangama
 * @date 2016-1-4
 */
public class ReturnValue extends BaseValue {//implements DealDataListner<ReturnValue>

    private static final long serialVersionUID = -5655757386004172231L;


    public static String SUCCESS = "200";

    public static String FAILED = "201";

    /**
     * 返回码
     */
    private String code;

    /**
     * 返回描述
     */
    private String desc;


    public ReturnValue() {
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isSuccess(){
        return SUCCESS.equals(this.code);
    }

}
